﻿<Canvas
        xmlns="http://schemas.microsoft.com/client/2007" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        x:Name="parentCanvas" 
        Loaded="Page_Loaded" 
        x:Class="PuzzleDiamonds.Page;assembly=ClientBin/PuzzleDiamonds.dll"
        Width="800"
        Height="600"
        Background="#FF000000"
        >
  
  <MediaElement x:Name="backgroundMusic" AutoPlay="False" Source="./sounds/backgroundMusic.mp3" />
  <MediaElement x:Name="clickSound" AutoPlay="False" Source="./sounds/click.mp3" />
  <MediaElement x:Name="victorySound" AutoPlay="False" Source="./sounds/victory.mp3" />
  <MediaElement x:Name="gameoverSound" AutoPlay="False" Source="./sounds/gameover.mp3" />

  <Canvas x:Name="mainCanvas" Width="624" Height="176" Canvas.Left="0" Canvas.Top="0">
    <Canvas.Background>
      <ImageBrush ImageSource="images/rainbow.png" Stretch="Fill"/>
    </Canvas.Background>
    <TextBlock x:Name="mainGameTitle" Width="288.201" Height="47.609" Canvas.Left="255.832" Canvas.Top="80" FontFamily="Comic Sans MS" FontSize="36" FontWeight="Bold" Text="Puzzle Diamonds" TextWrapping="Wrap" Foreground="#FFFFF400" RenderTransformOrigin="0.501,2.689" />
    <TextBlock Width="264" Height="24" Canvas.Left="264" Canvas.Top="180" Foreground="#FFFFF400" TextWrapping="Wrap" Text="Silverlight game by Riccardo Ceccato" />
    <TextBlock x:Name="mainUrlBlog" MouseLeftButtonUp="OnNavigateToBlog" Width="200" Height="24" Canvas.Left="296" Canvas.Top="210" Foreground="#FFFFF400" TextWrapping="Wrap" FontSize="12" Text="http://moriarty72.spaces.live.com" />
    <TextBlock Width="200" Height="24" Canvas.Left="360" Canvas.Top="300" Foreground="#FFFFF400" TextWrapping="Wrap" FontSize="12" Text="click to play" />
	</Canvas>

  <Canvas x:Name="gameCanvas" Width="136" Height="96" Canvas.Top="0" Canvas.Left="0">
    <Canvas.Background>
        <ImageBrush ImageSource="images/Background.png" Stretch="Fill"/>
    </Canvas.Background>
    <TextBlock x:Name="txtScore" Width="216" Height="40" Canvas.Left="8" Canvas.Top="8" FontFamily="Comic Sans MS" FontSize="20" FontWeight="Bold" Text="Score" TextWrapping="Wrap">
      <TextBlock.Foreground>
        <LinearGradientBrush EndPoint="0.5,1.0" StartPoint="0.5,0.0">
          <GradientStop Color="#FF333300" Offset="0"/>
          <GradientStop Color="#FFFFFF00" Offset="1"/>
        </LinearGradientBrush>
      </TextBlock.Foreground>
    </TextBlock>
    <TextBlock x:Name="txtGameOver" Visibility="Collapsed" Width="400" Height="60" Canvas.Left="200" Canvas.Top="200" FontFamily="Comic Sans MS" FontSize="50" FontWeight="Bold" Text="Game Over" TextWrapping="Wrap" Canvas.ZIndex="0">
      <TextBlock.Foreground>
        <LinearGradientBrush EndPoint="0.5,1.0" StartPoint="0.5,0.0">
          <GradientStop Color="#FF333300" Offset="0"/>
          <GradientStop Color="#FFFFFF00" Offset="1"/>
        </LinearGradientBrush>
      </TextBlock.Foreground>      
    </TextBlock>
  </Canvas> 
</Canvas>